package org.jadapter.tests.examples.simple.adapters;

import org.jadapter.tests.examples.simple.api.IB;
import org.jadapter.tests.examples.simple.api.Size;

public class BSize implements Size {
    private IB b;
    
    public BSize(IB b){ this.b = b; }

    public int size() {
        int bSize = b.getB() == null ? 0 : b.getB().length();
        int aSize = b.getA() == null ? 0 : b.getA().length();
        return bSize + aSize;
    }
}
